
package dateDype;

public class dateTyp {
    public static void main(String[] args) {
                    
        myDate[] dates = {
            new myDate(21, 06, 1989),
            new myDate(21, 03, 1989),
            new myDate(05, 12, 2010),
        };
        
        for(myDate imprimeFechas : dates) {
            System.out.println(""+imprimeFechas.getDay()+" "+imprimeFechas.getMonth()+" "
                    +imprimeFechas.getYear());
        }
    }   
}
